﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HigLabo.CodeGenerator.Version1
{
    public class Person
    {
        private Int32 _Age = 0;

        public String Name { get; set; }
        public Int32 Age
        {
            get { return _Age; }
        }
        public List<Person> Children { get; private set; }
        public Person()
            : this("")
        {
        }
        public Person(String name)
        {
            this.Children = new List<Person>();
            this.Name = name;
        }

        public void ShowName()
        {
            Console.WriteLine(this.Name);
        }
        public void AddAge(Int32 value)
        {
            _Age += value;
        }
    }
}
